package net.core.base.bean;

public class DataTableReturnObject {

	private String sEcho;
	private long iTotalRecords;
	private long iTotalDisplayRecords;
	private String sColumns;
	private String[][] aaData;
	private String msg;// 返回结果集 1为正常，其他均为错误信息
	private int pn;// 当前页码
	private String zjInfo;// 页脚总计信息（<TD>总计</TD><TD>6</TD>...）

	public DataTableReturnObject(long totalRecords, long totalDisplayRecords, String echo, String[][] d, String msg,
			int pn) {
		this.setiTotalRecords(totalRecords);
		this.setiTotalDisplayRecords(totalDisplayRecords);
		this.setsEcho(echo);
		this.setAaData(d);
		this.setMsg(msg);
		this.setPn(pn);
	}

	public DataTableReturnObject(long totalRecords, long totalDisplayRecords, String echo, String sColumns,
			String[][] d, String msg) {
		this.setsEcho(echo);
		this.setiTotalRecords(totalRecords);
		this.setiTotalDisplayRecords(totalDisplayRecords);
		this.setsColumns(sColumns);
		this.setAaData(d);
		this.setMsg(msg);
	}
	
	public DataTableReturnObject(long totalRecords, long totalDisplayRecords, String echo, String[][] d, String msg,
			int pn, String zjInfo) {
		this.setiTotalRecords(totalRecords);
		this.setiTotalDisplayRecords(totalDisplayRecords);
		this.setsEcho(echo);
		this.setAaData(d);
		this.setMsg(msg);
		this.setPn(pn);
		this.setZjInfo(zjInfo);
	}

	public void setsEcho(String sEcho) {
		this.sEcho = sEcho;
	}

	public String getsEcho() {
		return sEcho;
	}

	public void setiTotalRecords(long iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}

	public long getiTotalRecords() {
		return iTotalRecords;
	}

	public void setiTotalDisplayRecords(long iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}

	public long getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	public void setsColumns(String sColumns) {
		this.sColumns = sColumns;
	}

	public String getsColumns() {
		return sColumns;
	}

	public void setAaData(String[][] aaData) {
		this.aaData = aaData;
	}

	public String[][] getAaData() {
		return aaData;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getPn() {
		return pn;
	}

	public void setPn(int pn) {
		this.pn = pn;
	}

	public String getZjInfo() {
		return zjInfo;
	}

	public void setZjInfo(String zjInfo) {
		this.zjInfo = zjInfo;
	}
}
